package com.gotrade.demo.protocol;

import com.gotrade.demo.command.Command;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author jason.tang
 * @create 2018-12-04 18:01
 * @description 登录数据包
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class LoginRequestPacket extends Packet {

    /**
     * 基本信息
     */
    private String userId;
    private String username;
    private String password;

    @Override
    public Byte getCommand() {
        return Command.LOGIN_REQUEST;
    }
}